package com.et114.components.ectable;

import java.util.HashMap;
import java.util.Map;

//@author guanhw  for ectable
public class EctableDic {
	private Map dics = new HashMap() ;  //
	private String proName ;

	public void setDicKey( String show , String real ) {
		dics.put ( show , real ) ;
	}
	
	public String getValue( String show ) {
		return ( dics.get ( show ) != null ? dics.get ( show ).toString ( ) : null ) ;
	}
	
	public boolean containsShow( String show ) {
		return dics.containsKey ( show ) ; 
	}

	public String[] listShows( ) {
		String[] keys = new String[ dics.size ( ) ] ; 
		dics.keySet ( ).toArray ( keys ) ; 
		return keys ; 		
	}
	
	public String getProName ( ) {
		return proName;
	}
	public void setProName ( String proName ) {
		this.proName = proName;
	} 
}
